# Greg Johnston
#  <greg.johnston@gmail.com>
#  entry.py
#  RitualEntry class

class RitualEntry:
	"""Contains all the information for a running log entry"""
	def __init__(self, course, distance, unit, time, shoes, notes):
		self.course = course
		self.distance = distance
		self.unit = unit # unit internally represented as code
		self.time = time
		self.shoes = shoes
		self.notes = notes

	def __str__(self):
		format = (self.course, self.distance, self.unit, self.time, self.shoes, self.notes)
		return "RitualEntry{'%s' (%s %s), %s, '%s', '%s'}" % format

	def __eq__(self, other):
		return self.course == other.course and self.distance == other.distance and self.unit == other.unit and self.time == other.time and self.shoes == other.shoes and self.notes == other.notes
